home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 028.dms / 028.adf / Commands_List / Script_Commands / Ask. < prev    next >
Encoding:
Text File  |  1993-08-08  |  565 b   |  24 lines

  1. Command Name : Ask
  2.  
  3. Function : Ask for a yes or no response form user
  4.  
  5. Arguments : [<prompt>
  6.  
  7. Location : Kickstart ROM
  8.  
  9. If you include the line Ask <question> in your startup-sequence, the 
  10. computer will wait for a yes or no answer from the user.  Y, N, y, n, Yes, 
  11. No, no etc. are all included.  If the answer is Yes then a warn situation is
  12. reported.  You can test for this like so :
  13.  
  14. Ask "Yes or No?"
  15. If warn
  16.     echo "Yes"
  17.             (This is the yes script)
  18. Else
  19.     echo "No"
  20.             (This is the no script)
  21. EndIf
  22.  
  23. Don't forget to terminate If blocks with an EndIf instruction!
  24.